package com.wwj.study.rmi.demo.client;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

public class ClientDemo {

    public static void main(String[] args) throws RemoteException, NotBoundException, MalformedURLException {
        IHelloWorld helloService=
                (IHelloWorld) Naming.lookup("rmi://127.0.0.1/sayHello");
        System.out.println(helloService.sayHello("wwj"));
    }
}
